package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.SearchQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {
    void save(Travel travel);

    Travel get(Long id);

    List<Travel> listAll();

    void update(Travel travel);

    PageInfo queryForList(TravelQueryObject qo);

    void updateState(Travel travel);

    //全局搜素
    PageInfo globalSearch(SearchQueryObject qo);

    //搜索各类型条数
    int globalNumberSearch(SearchQueryObject qo);

    //点击浏览数量
    void updateBrowseNum(Travel travel);

    int selectTravelsNums(Long userId);

}
